package com.ruoyi.bbsAdmin.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 论坛操作记录对象 bbs_operation_record
 * 
 * @author ruoyi
 * @date 2024-01-26
 */
public class OperationRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 学校id */
    @Excel(name = "学校id")
    private Integer schoolId;

    /** 操作记录状态 */
    @Excel(name = "操作记录状态")
    private Integer recordState;

    /** 操作人 */
    @Excel(name = "操作人")
    private String operator;

    /** 操作对象类型 */
    @Excel(name = "操作对象类型")
    private Integer targetKind;

    /** 操作对象id  */
    @Excel(name = "操作对象id ")
    private String targetId;

    /** 变更的内容 */
    @Excel(name = "变更的内容")
    private String changeInfo;

    /** 备注 */
    @Excel(name = "备注")
    private String note;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date operateTime;

    /** 被禁言的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "被禁言的时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date bannedTime;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setSchoolId(Integer schoolId) 
    {
        this.schoolId = schoolId;
    }

    public Integer getSchoolId() 
    {
        return schoolId;
    }
    public void setRecordState(Integer recordState) 
    {
        this.recordState = recordState;
    }

    public Integer getRecordState() 
    {
        return recordState;
    }
    public void setOperator(String operator)
    {
        this.operator = operator;
    }

    public String getOperator()
    {
        return operator;
    }
    public void setTargetKind(Integer targetKind) 
    {
        this.targetKind = targetKind;
    }

    public Integer getTargetKind() 
    {
        return targetKind;
    }
    public void setTargetId(String targetId) 
    {
        this.targetId = targetId;
    }

    public String getTargetId() 
    {
        return targetId;
    }
    public void setChangeInfo(String changeInfo) 
    {
        this.changeInfo = changeInfo;
    }

    public String getChangeInfo() 
    {
        return changeInfo;
    }
    public void setNote(String note) 
    {
        this.note = note;
    }

    public String getNote() 
    {
        return note;
    }
    public void setOperateTime(Date operateTime) 
    {
        this.operateTime = operateTime;
    }

    public Date getOperateTime() 
    {
        return operateTime;
    }
    public void setBannedTime(Date bannedTime) 
    {
        this.bannedTime = bannedTime;
    }

    public Date getBannedTime() 
    {
        return bannedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("schoolId", getSchoolId())
            .append("recordState", getRecordState())
            .append("operator", getOperator())
            .append("targetKind", getTargetKind())
            .append("targetId", getTargetId())
            .append("changeInfo", getChangeInfo())
            .append("note", getNote())
            .append("operateTime", getOperateTime())
            .append("bannedTime", getBannedTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
